<template>
<div class="page">
  <div class="layout">
    <div class="topbar">
      <img
        src="https://img.zcool.cn/community/015f005ef34361a80120662151e519.jpg@1280w_1l_2o_100sh.jpg"
        alt=""
        class="logo"
      />
      <div class="options">
        <div class="read">快乐阅读，开开心心every day</div>
        <i class="el-icon-switch-button" @click="end"></i>
      </div>
    </div>
  </div>
  <div class="log-out">
    <img
      class="logo"
      src="https://xiazai-fd.zol-img.com.cn/t_s200x150/g5/M00/0A/0C/ChMkJlkmk3-IbtnpAAA1ppQmZK4AAcmvAMvNNYAADW-154.jpg"
    />
    <h3 class="slogan">免费在线小说阅读</h3>
    <div class="login-btn" @click="login">用户登录</div>
    <div class="register-btn" @click="regist">用户注册</div>
  </div>
</div>
</template>
<script>
export default {
  name: 'Home',
  methods:{
    login() {
      this.$router.push(`login`);
    },
    regist() {
      this.$router.push(`regist`);
    },
    end(){
      this.$router.push(`/`)
    }
  }
}
</script>
<style lang="scss" scoped>
.layout {
  width: 100%;
  height: 100%;
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 50px;
    height: 50px;
    // background: #4f1963;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .logo {
      // background: #4f1963;
      width: 61px;
      height: 22px;
    }
    .options {
      display: flex;
      justify-content: space-around;
      align-items:center;
      .read {
        color: #000000;
        font-family: FZYaoti;
        width: 220px;
        height: 20px;
        margin-right: 12px;
        // background: url(https://qgt-document.oss-cn-beijing.aliyuncs.com/P3-5-Vue/6/share.png)
        //   no-repeat center / contain;
      }
      // .menu {
      //   width: 18px;
      //   height: 15px;
      //   background: url(https://qgt-document.oss-cn-beijing.aliyuncs.com/P3-5-Vue/6/menu.png)
      //     no-repeat center / contain;
      // }
    }
  }
}
.log-out {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin: 0 auto;
  margin-top: 98px;
  .logo {
    width: 102px;
    height: 82px;
    margin-bottom: 20px;
  }
  .slogan {
    width: 171px;
    height: 23px;
    margin-bottom: 72px;
  }
  .login-btn {
    width: 100%;
    height: 47px;
    background: #00c2c3;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    line-height: 47px;
    color: #ffffff;
  }
  .register-btn {
    width: 100%;
    height: 47px;
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #000000;
    font-weight: 500;
    text-align: center;
    font-size: 16px;
    line-height: 47px;
    color: #1d1d1d;
  }
}
</style>
